home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr53 / pctv4n_1.zip / QEDEFS.H < prev    next >
Text File  |  1993-06-10  |  1KB  |  68 lines

  1. /**************************************************
  2. * FILE NAME:  QEdefs.h   TITLE:  Q+E Lib defn's
  3. *
  4. * AUTHOR: Ken North     Resource Group, Inc.    
  5. *                       2604B El Camino Real, #351
  6. *    copyright(c)1992    Carlsbad, CA 92008
  7. ***************************************************
  8. * SYNOPSIS:  Constants for use with Q+E Lib
  9. **************************************************/
  10.  
  11. #ifndef __QEDEFS_H
  12. #define __QEDEFS_H
  13.  
  14.  
  15. #ifndef TRUE
  16. #define  TRUE  1
  17. #endif
  18.  
  19. #ifndef FALSE
  20. #define FALSE  0
  21. #endif
  22.  
  23.                 //        C parameter types
  24. typedef    char far *        POINTER;
  25. typedef    int                HDBC;
  26. typedef    int                HSTMT;
  27. typedef    int                HCUR;
  28.  
  29. #define    FLOAT                float
  30. #define    DOUBLE                double
  31.  
  32.  
  33. #define     DBSYSERROR         4
  34. #define     SQL_SUCCESS        0
  35. #define        NOHANDLE        0
  36. #define        ENDFILE            -5
  37. #define        OUTOFMEMORY        -3
  38. #define        NULLVALUE        -2
  39. #define        TRUNCATEDVALUE    -1
  40.  
  41. #define        REQUEST_ERROR    -1
  42.  
  43. #define        DECIMAL            3
  44. #define        CHARACTER        1
  45.  
  46.  
  47. #define        NAMELENGTH        44
  48.                     /* length of variable field */
  49. #define        VARLENGTH 
  50.                 
  51. #define    MAXSQL             512
  52.                   /* max SQL statement for Excel */
  53. #define        MAXLEN            255    
  54.                     /* max fields per SQL record */
  55. #define        MAXFIELD        80
  56.  
  57.            /* size of record buffer (char array) */
  58. #define        XRECSIZE        20000
  59.  
  60.  
  61.             /* connection parameters string len */
  62. #define    CONECLEN         25
  63. #define    PASSWORDLEN        11
  64.  
  65. #endif
  66.  
  67.  
  68.